package com.miao.activity.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * 
 * @author xk
 * @email 2337156522@QQ.com
 * @date 2022-02-22 16:35:05
 */
@Data
@TableName("order_info")
public class OrderInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单
	 */
	@TableId
	@JsonSerialize(using = ToStringSerializer.class)
	private Long oid;
	/**
	 * 秒杀id
	 */
	private Integer miaoId;
	/**
	 * 用户ID
	 */
	private Integer userId;
	/**
	 * 商品id
	 */
	private Integer goodsId;
	/**
	 * 地址id
	 */
	private Integer deliveryAddrId;
	/**
	 * 冗余的商品名称
	 */
	private String goodsName;
	/**
	 * 商品数量
	 */
	private Integer goodsCount;
	/**
	 * 商品单价
	 */
	private BigDecimal goodsPrice;

	private BigDecimal shiPrice;

	/**
	 * 1.pc 2.android 3.ios
	 */
	private Integer goodsChannel;
	/**
	 * 订单状态：0新建未支付，1已支付，2已发货，3已收货，4已退款，5已完成
	 */
	private Integer status;
	/**
	 * 订单创建时间
	 */
	private Date createDate;
	/**
	 * 支付时间
	 */
	private Date payDate;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public Integer getMiaoId() {
		return miaoId;
	}

	public void setMiaoId(Integer miaoId) {
		this.miaoId = miaoId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getDeliveryAddrId() {
		return deliveryAddrId;
	}

	public void setDeliveryAddrId(Integer deliveryAddrId) {
		this.deliveryAddrId = deliveryAddrId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getGoodsCount() {
		return goodsCount;
	}

	public void setGoodsCount(Integer goodsCount) {
		this.goodsCount = goodsCount;
	}

	public BigDecimal getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(BigDecimal goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public BigDecimal getShiPrice() {
		return shiPrice;
	}

	public void setShiPrice(BigDecimal shiPrice) {
		this.shiPrice = shiPrice;
	}

	public Integer getGoodsChannel() {
		return goodsChannel;
	}

	public void setGoodsChannel(Integer goodsChannel) {
		this.goodsChannel = goodsChannel;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}
}
